package stage_1_module_1.code;

/***
 * 编程题使用双重循环实现五子棋游戏棋盘的绘制
 * 
 * 1.打印标题行
 * 2.循环打印0~f行
 * 3.循环打印每行0~f列，打完每行增加换行符打印
 */

public class homework_5 {
    public static void main(String[] args) {
        //标题标志
        char[] t = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
        System.out.print(" ");
        for (int f=0;f<16;f++) {
            System.out.print(" "+ t[f] + " ");
        }
        System.out.print("\n");
        for (int i=0;i<16;i++) {
            System.out.print(t[i]);
            for (int j=0;j<16;j++) {
                System.out.print(" + ");
            }
            System.out.print("\n");
        }
    }
}
